package com.jzr.pda.db1.model;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import com.fasterxml.jackson.annotation.JsonAutoDetect;
/**
 * <p>
 * 医嘱表
 * </p>
 *
 * @author henry
 * @since 2019-08-12
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="TDoctorOrder对象", description="医嘱表")
@JsonAutoDetect(fieldVisibility= JsonAutoDetect.Visibility.ANY,getterVisibility = JsonAutoDetect.Visibility.NONE)
public class TDoctorOrder implements Serializable {
    private static final long serialVersionUID = 1L;
    public static final String TableName = "t_doctor_order";
    public static final String Id_ = "id";
    public static final String OrderNo_ = "order_no";
    public static final String PatientCode_ = "patient_code";
    public static final String PatientCureNo_ = "patient_cure_no";
    public static final String GroupCode_ = "group_code";
    public static final String DrugCode_ = "drug_code";
    public static final String OrderName_ = "order_name";
    public static final String Standards_ = "standards";
    public static final String DrugWay_ = "drug_way";
    public static final String Frequency_ = "frequency";
    public static final String CQty_ = "c_qty";
    public static final String CQtyUnit_ = "c_qty_unit";
    public static final String NQty_ = "n_qty";
    public static final String NQtyUnit_ = "n_qty_unit";
    public static final String UseDate_ = "use_date";
    public static final String DoctorCode_ = "doctor_code";
    public static final String SkinTest_ = "skin_test";
    public static final String IsBaby_ = "is_baby";
    public static final String Remark_ = "remark";
    public static final String OwnDrug_ = "own_drug";
    public static final String IsCancel_ = "is_cancel";
    public static final String IsExec_ = "is_exec";
    public static final String ExecUserId_ = "exec_user_id";
    public static final String ExecTime_ = "exec_time";
    public static final String OrderType_ = "order_type";
    public static final String PrintType_ = "print_type";
    public static final String DripSpeed_ = "drip_speed";
    public static final String DripSpeedUnit_ = "drip_speed_unit";
    public static final String DupliDrupFlag_ = "dupli_drup_flag";
    public static final String UpdateBy_ = "update_by";
    public static final String UpdateTime_ = "update_time";
    public static final String IsDel_ = "is_del";


    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "医嘱执行编码")
    @TableField("order_no")
    private String orderNo;

    @ApiModelProperty(value = "病人代码")
    @TableField("patient_code")
    private String patientCode;

    @ApiModelProperty(value = "住院号")
    @TableField("patient_cure_no")
    private String patientCureNo;

    @ApiModelProperty(value = "医嘱组合")
    @TableField("group_code")
    private String groupCode;

    @ApiModelProperty(value = "药品编码")
    @TableField("drug_code")
    private String drugCode;

    @ApiModelProperty(value = "医嘱名称")
    @TableField("order_name")
    private String orderName;

    @ApiModelProperty(value = "药物规格")
    @TableField("standards")
    private String standards;

    @ApiModelProperty(value = "给药方式")
    @TableField("drug_way")
    private String drugWay;

    @ApiModelProperty(value = "执行频率: 类似:2次/天或BID等")
    @TableField("frequency")
    private String frequency;

    @ApiModelProperty(value = "一次剂量")
    @TableField("c_qty")
    private Float cQty;

    @ApiModelProperty(value = "一次剂量单位")
    @TableField("c_qty_unit")
    private String cQtyUnit;

    @ApiModelProperty(value = "一次数量")
    @TableField("n_qty")
    private Float nQty;

    @ApiModelProperty(value = "一次数量单位")
    @TableField("n_qty_unit")
    private String nQtyUnit;

    @ApiModelProperty(value = "计划用药日期")
    @TableField("use_date")
    private LocalDateTime useDate;

    @ApiModelProperty(value = "开医嘱医生编码")
    @TableField("doctor_code")
    private String doctorCode;

    @ApiModelProperty(value = "是否皮试")
    @TableField("skin_test")
    private Integer skinTest;

    @ApiModelProperty(value = "是否婴儿")
    @TableField("is_baby")
    private Boolean isBaby;

    @ApiModelProperty(value = "医嘱说明")
    @TableField("remark")
    private String remark;

    @ApiModelProperty(value = "是否自带药")
    @TableField("own_drug")
    private Integer ownDrug;

    @ApiModelProperty(value = "是否已经取消")
    @TableField("is_cancel")
    private Boolean isCancel;

    @ApiModelProperty(value = "是否已执行")
    @TableField("is_exec")
    private Boolean isExec;

    @ApiModelProperty(value = "执行人ID")
    @TableField("exec_user_id")
    private Integer execUserId;

    @ApiModelProperty(value = "执行时间")
    @TableField("exec_time")
    private LocalDateTime execTime;

    @ApiModelProperty(value = "医嘱类型: 0=临嘱, 1=长嘱")
    @TableField("order_type")
    private Integer orderType;

    @ApiModelProperty(value = "打印类型")
    @TableField("print_type")
    private String printType;

    @ApiModelProperty(value = "滴速")
    @TableField("drip_speed")
    private Integer dripSpeed;

    @ApiModelProperty(value = "滴速单位:  0: 滴/分(默认); 1:毫升/分")
    @TableField("drip_speed_unit")
    private Integer dripSpeedUnit;

    @ApiModelProperty(value = "若1天内有编号相同,执行日期相同的药组,必须传此字段区分")
    @TableField("dupli_drup_flag")
    private Boolean dupliDrupFlag;

    @ApiModelProperty(value = "更新人ID")
    @TableField("update_by")
    private Integer updateBy;

    @ApiModelProperty(value = "更新时间")
    @TableField("update_time")
    private LocalDateTime updateTime;

    @ApiModelProperty(value = "删除标记")
    @TableField("is_del")
    private Boolean isDel;


}
